package kunden;

import java.util.ArrayList;

public class KundenTest {

	public static void main(String[] args) {
		Privatkunde pk1 = new Privatkunde("123", "Bahnhofstr. 21",
				"28205", "Bremen",
				"987654", "787878787",
				"Lueder", "Giffey");
		Geschaeftskunde gk1 = new Geschaeftskunde("321", "Hauptstr. 1",
				"20254", "Hamburg",
				"85975120", "56565656",
				"Microsoft", "P-123-K");
		System.out.println(gk1.getAnschrift());
		
		System.out.println("\nArrayList\n");
		
		// Kundenliste
		ArrayList<Kunde> kundenliste = new ArrayList<Kunde>();
		kundenliste.add(pk1);
		kundenliste.add(gk1);
		for(Kunde k: kundenliste)
			System.out.println(k+"\n");
		
		System.out.println("\nTest\n");
		System.out.println(gk1);

	}

}
